package com.ele.Dao;

import com.ele.Pojo.ShopCategory;

import java.sql.SQLException;
import java.util.List;

public interface ShopCategoryDao {
    /**
     * 查询店铺分类
     */
    List<ShopCategory> shopCategoryList() throws SQLException;

    /**
     * 添加店铺分类
     * @param categoryName
     * @return
     * @throws SQLException
     */
    Integer shopCategoryAdd(String categoryName)throws SQLException;

    /**
     * 分页查询店铺分类
     * @param currentPage
     * @param pageSize
     * @return
     */
    List<ShopCategory> findShopCategory(String currentPage, String pageSize)throws SQLException;

    /**
     * 查询店铺总记录数
     * @return
     */
    Long selectCount()throws SQLException;

    /**
     * 根据id删除店铺分类
     * @param categoryId
     * @return
     * @throws SQLException
     */
    Integer shopCategoryDelete(String categoryId)throws SQLException;

    /**
     * 修改店铺分类数据
     * @param categoryName
     * @param shopCategoryId
     * @return
     * @throws SQLException
     */
    Integer shopCategoryUpdate(String categoryName, String shopCategoryId)throws SQLException;

}
